// 注册路由路劲对应的渲染数据
import Layout from "../components/Layout.vue";

let routes = [
  {
    path: "/",
    component: Layout,
    redirect: {
      path: "shop/shopList",
    },
    children: [
      {
        path: "shop",
        component: () => import("../components/e-manage/Shop"),
        children: [
          {
              path: 'shoplist',
              component: () => import ('../components/e-manage/ShopList.vue')
          },
        ],
      },
      {
        path: "commodity",
        component: () => import("../components/e-manage/Commodity"),
      },
      {
        path: "deal",
        component: () => import("../components/e-manage/Deal.vue"),
      },
    ],
  },
];

export default routes;
